package com.gp.tms.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import java.time.LocalDate;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import java.io.Serializable;
import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 车辆表
 * </p>
 *
 * @author team
 * @since 2023-03-25
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="Vehicle对象", description="车辆表")
public class Vehicle implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "车辆编号")
    @TableId(value = "vehicle_id", type = IdType.AUTO)
    private Integer vehicleId;

    @ApiModelProperty(value = "车辆所属站点编号（引用站点表主键）")
    private Integer siteId;

    @ApiModelProperty(value = "驾驶员（引用员工表主键）")
    private Integer driver;

    @ApiModelProperty(value = "车牌号")
    private String vehicleCode;

    @ApiModelProperty(value = "状态，0-闲置中，1-运输中")
    private Integer status;

    @ApiModelProperty(value = "车辆所处位置")
    private String position;

    @ApiModelProperty(value = "车辆载重")
    private Float vehicleLoad;

    @ApiModelProperty(value = "购置日期")
    @JsonFormat(pattern = "yyyy-MM-dd",timezone="GMT+8")
    private Date purchaseDate;

    @ApiModelProperty(value = "发车时间")
    private Date departureTime;


}
